package com.sysh.web.controller;

import com.sysh.service.Hello;
import com.sysh.service.Hello1;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/hello")
public class HelloWorld {

    @Autowired
    private Hello hello;
    @Autowired
    private Hello1 hello1;


    @RequestMapping("/world")
    @ResponseBody
    public String Hello()
    {
        return hello.ss();
    }

    @RequestMapping("/world1")
    @ResponseBody
    public String Hello1()
    {
        return hello1.ss();
    }
}
